#ifndef CUSTOMPROGRESSBAR_H
#define CUSTOMPROGRESSBAR_H

#include <QObject>
#include <QProgressBar>
#include <QPainter>
#include <QPainterPath>

class CustomProgressBar : public QProgressBar
{
    Q_OBJECT
public:
    explicit CustomProgressBar(QWidget *parent = nullptr);

signals:
protected:
    void paintEvent(QPaintEvent *event) override;
private:
    QPainterPath drawPath(int radius);
    int h = 0;          //音量条的高度
};

#endif // CUSTOMPROGRESSBAR_H
